/*
 * @Date: 2022-12-26 10:55:21
 * @LastEditors: 旧轩00°°
 * @LastEditTime: 2022-12-26 18:03:06
 * @FilePath: /vue3-ts-vite-pinia-husky/src/api/user.ts
 */
import http from '@/utils/http'
import type { LoginTypes } from '@/types/user'
import { cache } from '@/utils'
// 登录
export const login = (params: LoginTypes) => http.post('/login', params)

//
export const userInfoById = (id: string) => http.get(`/users/${id}`)

// 查询角色菜单树
export const roleIdMenu = (id: string) => http.get(`/role/${id}/menu`)
